package com.store.service;

import com.store.pojo.Category;
import com.store.utils.JsonResult;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

public interface CategoryService {
    //查找所有商品类型
    //JsonResult findAllCategoryInfo(HttpSession session);
    List<Category> findAllCategoryInfo();

    //添加商品类型
    Map<String,Object> addCategoryInfo(Category category);

    //根据ID删除门店信息
    int deleteCategoryInfoById(int id);

    //根据id 查询当前门店信息
    Category findCategoryById(Integer id);
    //
    int updateCategory(Category category);
}
